﻿<UserControl x:Name="Parent"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:DataVirtualization.Toolkit.Charting"
    xmlns:Plotter="using:DataVirtualization.Toolkit.Plotter"
    xmlns:common="using:DataVirtualization.Toolkit"  
    xmlns:Legends="using:DataVirtualization.Toolkit.Legends"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Grid x:Name="Container" Width="{Binding Width, ElementName=Parent}" Height="{Binding Height, ElementName=Parent}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="2*" x:Name="PlotArea"/>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>
        <Plotter:PiePlotter x:Name="Pie" Grid.Column="0" Margin="10" >
        </Plotter:PiePlotter>
        <ScrollViewer Grid.Column="1" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
        <Legends:Legend x:Name="Legend" VerticalAlignment="Bottom"></Legends:Legend>
        </ScrollViewer>
    </Grid>
</UserControl>